from dataclasses import dataclass
from typing import List, Optional, Tuple
import numpy as np
from datetime import datetime

@dataclass
class TrackPoint:
    """单个航迹点数据结构"""
    timestamp: float
    position: np.ndarray
    velocity: Optional[np.ndarray] = None
    
@dataclass
class RadarMeasurement:
    """雷达测量数据结构"""
    timestamp: float
    position: np.ndarray
    noise: Optional[float] = None

@dataclass
class SimulationFrame:
    """仿真帧数据结构"""
    timestamp: float
    true_tracks: List[TrackPoint]
    measurements: List[RadarMeasurement]